package com.fqgj.xjd.user.dao.impl;

import com.fqgj.common.base.AbstractBaseMapper;
import com.fqgj.xjd.user.dao.UserFeatureTagDao;
import com.fqgj.xjd.user.entity.UserFeatureTagEntity;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * User: zhangxingyun
 * Date: 2017-07-20
 * Time: 18:38:53.092
 */

@Repository
public class UserFeatureTagDaoImpl extends AbstractBaseMapper<UserFeatureTagEntity> implements UserFeatureTagDao {

    /**
     * 查询该app所有标签
     *
     * @param appCode
     * @param biz
     * @return
     */
    @Override
    public List<UserFeatureTagEntity> queryAllFeatureTags(String appCode, Integer biz) {
        Map<String, Object> map = new HashMap<>();
        map.put("appCode", String.valueOf(appCode));
        map.put("biz", biz);
        return getSqlSession().selectList(getStatement("queryAllFeatureTags"), map);
    }
}